<?php
$url = $this->url;
?>
<form action="index.php" method="post" Name="f_dsp_login">
<?php echo $this->formHidden("hdn_autorem","0",null); ?>
<table width="100%" id="login" align="center" border="0">
	<tr>
		<td class="left_net" valign="top">
        	<div class="title_bg_2">
				<p> Dịch vụ công trực tuyến</p>
			</div>
			<div class="content-dichvu" style="clear:both;">
			<?php
				$objLibrary = new Efy_Library();
                  echo $objLibrary->_readFile('templates/other/dich_vu_cong_tt.html');?>
             </div>
		</td>        
		<td class="right_net" valign="top">
        	<div class="title_bg_dangnhap">
                 <p>Đăng nhập hệ thống</p>
            </div>
			<table width="100%" class="login_form" cellpadding="0" cellspacing="0">
					<col width="39%"><col width="61%">
					<tr>
						<td class="normal_label_net"><?php echo 'Tên đăng nhập';?></td>
						<td> <input name="txt_usename" id="txt_usename" value="<?=$this->username?>" type="text" class="normal_textbox_net" value="<?echo $this->username ?>" onKeyDown="change_focus_on_firefox(document.forms['f_dsp_login'],this,event)" message = "Phải xác định Tên đăng nhập!" ></td>
					</tr>
					<tr style="height: 25px;">
						<td class="normal_label_net"><?php echo 'Mật khẩu';?></td>
						<td><input Name="txt_password" Type="password" value="<?=$this->password?>" class="normal_textbox_net" onKeyDown="change_focus_on_firefox(document.forms['f_dsp_login'],this,event)" message = "Phải xác định mật khẩu!"  ></td>
					</tr>
					<tr style="height: 40px;">
						<td></td>
						<td align="left" width="100%" valign="center">
							<div class="border-login" style=" float:left"> <input Type="button" Name="btn_save"class="add_large_button_net" value="Đăng nhập"  onclick = "btn_save_onclick();" onKeyDown="change_focus_on_firefox(document.forms['f_dsp_login'],this,event)" > </div>
							
						</td>
					</tr>
					
			</table>
			<div>
				<div class="ghinho-mk">
					<input id="save_login" name="save_login" type="checkbox"/><label for="save_login">Ghi nhớ mật khẩu</label>
				</div>
				<div class="help-login">
					<a href="<?=$url?>record/user/add/">Đăng ký tài khoản</a>
				</div>
			</div>
		</td>
	</tr>
</table>
</form>
<script language="JavaScript">
	set_focus(document.forms[0]);
	if('<?=$this->sCheckReme?>'!=0){
		$('#save_login').attr('checked',true);
	}else{
		$('#save_login').attr('checked',false);
	}
	function btn_save_onclick(){
		if($('#save_login').is(':checked')){
			$('#hdn_autorem').val('1');
		}
		actionUrl('../worklogin/');
	}
</script>